﻿// -------------------------------------------------------------------------
//    @FileName         :    NFTransSaveDetailDB.h
//    @Author           :    gaoyi
//    @Date             :    2025-03-27
//    @Email			:    445267987@qq.com
//    @Module           :    NFTransSaveDetailDB
//
// -------------------------------------------------------------------------

#pragma once

#include "NFComm/NFObjCommon/NFTransBase.h"
#include "NFLogicCommon/NFLogicShmTypeDefines.h"
#include "NFServerComm/NFServerCommon/NFCacheDataSaveTrans.h"

class NFSnsRoleDetail;
class NFTransSaveDetailDB: public NF_OBJECT_TEMPLATE_MACRO(NFTransSaveDetailDB, EOT_TRANS_SAVE_ROLE_DETAIL, NFCacheDataSaveTrans)
public:
    NFTransSaveDetailDB();

    ~NFTransSaveDetailDB() override;

    int CreateInit();

    int ResumeInit();

public:
    int SaveDb(NFSnsRoleDetail* pRoleDetail, int iReason = TRANS_SAVEROLEDETAIL_NORMAL);
};
